package com.qd.common.panda.constant;

/**
 * @author sjk
 */
public class PandaConstant {
    /**
     * 类型
     * CAR_PARK 停车场
     * CHARGING_STATION 充电站
     * GAS_STATION 加油站
     */
    public static final String PARK_TYPE_CAR_PARK = "CAR_PARK";
    public static final String PARK_TYPE_CHARGING_STATION = "CHARGING_STATION";
    public static final String PARK_TYPE_GAS_STATION = "GAS_STATION";
    /**
     * CAR_PARK_TYPE_0 普通
     */
    public static final String CAR_PARK_TYPE_0 = "CAR_PARK_TYPE_0";
    /**
     * CAR_PARK_TYPE_1 交投
     */
    public static final String CAR_PARK_TYPE_1 = "CAR_PARK_TYPE_1";
    /**
     * freeStatus 泊位状态
     * <p>
     * 0泊位充足
     * 1泊位紧张
     * 2泊位已满
     */
    public static final int FREE_STATUS_ENOUGH = 0;
    public static final int FREE_STATUS_TENSION = 1;
    public static final int FREE_STATUS_FULL = 2;
    /**
     * 停车场评分的默认平均分
     */
    public static final String CAR_PARK_SCORE_AVG_DEFAULT = "5.0";
    /**
     * 停车积分
     */
    public static final String POINT_TYPE_PARK = "POINT_TYPE_PARK";
    /**
     * 充电积分
     */
    public static final String POINT_TYPE_CHARGE = "POINT_TYPE_CHARGE";
    /**
     * 加油积分
     */
    public static final String POINT_TYPE_GAS = "POINT_TYPE_GAS";
    /**
     * 洗车积分
     */
    public static final String POINT_TYPE_CAR_WASH = "POINT_TYPE_CAR_WASH";
    /**
     * 保养积分
     */
    public static final String POINT_TYPE_CAR_MAINTENANCE = "POINT_TYPE_CAR_MAINTENANCE";
    /**
     * 住宅
     */
    public static final String PARK_SPACE_TYPE1 = "park_space_type1";
    /**
     * 商用
     */
    public static final String PARK_SPACE_TYPE2 = "park_space_type2";
    /**
     * 短租业主车位（后续增加）
     */
    public static final String PARK_SPACE_TYPE3 = "park_space_type3";
    /**
     * 短租公共车位（后续增加）
     */
    public static final String PARK_SPACE_TYPE4 = "park_space_type4";
    /**
     * 强预约，保留车位
     */
    public static final int STRONG_RESERVATION_1 = 1;
    /**
     * 普通预约
     */
    public static final int STRONG_RESERVATION_2 = 2;
    /**
     * 方向:1进场
     */
    public static final int DIRECTION_1 = 1;
    /**
     * 方向:2离场
     */
    public static final int DIRECTION_2 = 2;
    /**
     * 发票抬头类型:企业单位
     */
    public static final String TYPE_HEADER_1 = "type_header_1";
    /**
     * 发票抬头类型:个人/非企业单位
     */
    public static final String TYPE_HEADER_2 = "type_header_1";
    /**
     * 登录门岗状态:未登录
     */
    public static final String L_DOORMAN_STATUS_0 = "l_doorman_status_0";
    /**
     * 登录门岗状态:已登录
     */
    public static final String L_DOORMAN_STATUS_1 = "l_doorman_status_1";
    /**
     * 登录门岗状态:已退出
     */
    public static final String L_DOORMAN_STATUS_2 = "l_doorman_status_2";
    /**
     * 消息类型:预约超时
     */
    public static final String MSG_TYPE_1 = "msg_type_1";
    /**
     * 消息类型:智慧停车
     */
    public static final String MSG_TYPE_2 = "msg_type_2";
    /**
     * 消息类型:系统消息
     */
    public static final String MSG_TYPE_14 = "msg_type_14";
    /**
     * 充电品牌,0蔚来
     */
    public static final int CHARGE_BRAND_0 = 0;
    /**
     * 充电品牌,1国家电网
     */
    public static final int CHARGE_BRAND_1 = 1;
    /**
     * 充电品牌,2特来电
     */
    public static final int CHARGE_BRAND_2 = 2;
    /**
     * 消息类型,LOGS_TYPE_PARK_OUT 进出场消息
     */
    public static final String LOG_TYPE_PARK_OUT = "LOG_TYPE_PARK_OUT";
    /**
     * 消息类型,LOGS_TYPE_CHARGE 充电消息
     */
    public static final String LOG_TYPE_CHARGE = "LOG_TYPE_CHARGE";
    /**
     * 消息类型,加油支付回调
     */
    public static final String LOG_TYPE_GAS_PAY_NOTIFY = "LOG_TYPE_GAS_PAY_NOTIFY";
    /**
     * 消息类型,加油退款申请
     */
    public static final String LOG_TYPE_GAS_REFUND_REQUESTS = "LOG_TYPE_GAS_REFUND_REQUESTS";
    /**
     * 消息类型,汽车之家回调
     */
    public static final String LOG_TYPE_AUTO_HOME_PAY_NOTIFY = "LOG_TYPE_AUTO_HOME_PAY_NOTIFY";
    /**
     * 消息类型,查询加油站信息
     */
    public static final String LOG_TYPE_GAS_STATIONS = "LOG_TYPE_GAS_STATIONS";
    /**
     * 消息类型,同步汽车之家优惠折扣
     */
    public static final String LOG_TYPE_SYNC_AUTO_HOME_DISCOUNT = "LOG_TYPE_SYNC_AUTO_HOME_DISCOUNT";
    /**
     * 消息类型,创建加油订单
     */
    public static final String LOG_TYPE_GAS_CREATE_ORDER = "LOG_TYPE_GAS_CREATE_ORDER";
    /**
     * 消息类型,计算加油价格
     */
    public static final String LOG_TYPE_GAS_CALCULATE_PRICE = "LOG_TYPE_GAS_CALCULATE_PRICE";
    /**
     * 优惠平台标记
     * 0 延长壳牌
     */
    public static final int PLATFORM_EXTEND_SHELL = 0;
    /**
     * 优惠平台标记
     * 1 汽车之家
     */
    public static final int PLATFORM_AUTO_HOME = 1;
    /**
     * 优惠平台标记
     * 2 易加油
     */
    public static final int PLATFORM_E_GAS = 2;
    /**
     * 优惠平台标记
     * 3 熊猫泊车
     */
    public static final int PLATFORM_PANDA_PARK = 3;
    /**
     * 是否开启积分抵扣
     */
    public static final String POINT_DEDUCTION = "POINT_DEDUCTION";
    /**
     * 卷方式
     * 折扣卷
     */
    public static final String DISCOUNT_METHOD_1 = "discount_method_1";
    /**
     * 卷方式
     * 满减卷
     */
    public static final String DISCOUNT_METHOD_2 = "discount_method_2";
    /**
     * 卷方式
     * 现金券
     */
    public static final String DISCOUNT_METHOD_3 = "discount_method_3";
    /**
     * 券类型
     * 全品类
     */
    public static final String CARD_TYPE_ALL = "card_type_all";
    /**
     * 券类型
     * 加油卷
     */
    public static final String CARD_TYPE_GAS = "card_type_gas";
    /**
     * 券类型
     * 商城卷
     */
    public static final String CARD_TYPE_SHOP = "card_type_shop";
    /**
     * -1 未分配
     */
    public static final int USE_STATE_NEG_1 = -1;
    /**
     * 0未兑换
     */
    public static final int USE_STATE_0 = 0;
    /**
     * 1已兑换
     */
    public static final int USE_STATE_1 = 1;
    /**
     * 2已使用
     */
    public static final int USE_STATE_2 = 2;
    /**
     * 3已过期
     */
    public static final int USE_STATE_3 = 3;

    /**
     * 表示所有品牌
     */
    public static final String ALL = "all";
    /**
     * 默认邮编
     */
    public static final String DEFAULT_POSTAL_CODE = "000000";
    /**
     * 审核状态
     * 0未审核
     */
    public static final Integer APPROVAL_STATUS_0 = 0;
    /**
     * 审核状态
     * 1审核通过
     */
    public static final Integer APPROVAL_STATUS_1 = 1;
    /**
     * 审核状态
     * 2审核未通过
     */
    public static final Integer APPROVAL_STATUS_2 = 2;

    /**
     * 2dVe-2qpycKeUug515fXS0o3-DLTs0R0eQML2AVU1zQ	T_1001	泊位预约提醒
     */
    public static final String T_1001 = "T_1001";
    /**
     * b-DBm-Qdw2zulKRS8Ue2sse8zfeSMM_hq6qv2R38YfU	T_1002	车位到期提醒
     */
    public static final String T_1002 = "T_1002";
    /**
     * A1-SLq8JjiVSJxAj_iE4kAWHboTet_CH4p8-UwrBFeQ	T_1003	预约入场提醒
     */
    public static final String T_1003 = "T_1003";
    /**
     * YQcDgMEYmKvaixxrL8QBXd7yZ8z6jwhTXCdaYlD7cX0 T_1004   优惠劵到期提醒
     */
    public static final String T_1004 = "T_1004";
    /**
     * csyli39fNhBX9iafQ39VFtODC6yVwAxsF90vqNBhpeI T_1005 卡券到账通知(用于分享以后得提醒获得赠送券)
     */
    public static final String T_1005 = "T_1005";
    /**
     * 短信验证码
     */
    public static final String T_2001 = "T_2001";
    /**
     * 日租
     */
    public static final String LEASE_TYPE_DAY = "lease_type_1";
    /**
     * 时租
     */
    public static final String LEASE_TYPE_HOUR = "lease_type_2";

    /**
     * 海康订单类型
     * 1 临停
     */
    public static final int HK_ORDER_TYPE_1 = 1;
    /**
     * 海康订单类型
     * 2 欠费
     */
    public static final int HK_ORDER_TYPE_2 = 2;
    /**
     * 分类
     * 海康订单
     */
    public static final String CLASSIFICATION_HK = "hkOrder";
    /**
     * 子分类
     * 临停
     */
    public static final String CHILD_CLASSIFICATION_HK_PAY_NOTICE = "hkPayNotice";
    /**
     * 子分类
     * 欠费补交
     */
    public static final String CHILD_CLASSIFICATION_HK_PAY_ARREARS_FEE = "hkPayArrearsFee";
    /**
     * 优惠方式
     * 折扣
     */
    public static final String DISCOUNT_METHODS_1 = "discount_methods_1";

    /**
     * 支付类型
     * 微信支付
     */
    public static final int PAY_METHOD_WX = 1;
    /**
     * 支付类型
     * 钱包支付
     */
    public static final int PAY_METHOD_WALLET = 2;
    /**
     * 钱包充值类型
     * 1 自主充值
     */
    public static final int RECHARGE_TYPE_1 = 1;
    /**
     * 钱包充值类型
     * 1 后台充值
     */
    public static final int RECHARGE_TYPE_2 = 2;

    /**
     * 商品统计类型
     * 1查看
     */
    public static final int PRODUCT_STATISTICS_TYPE_1 = 1;
    /**
     * 商品统计类型
     * 2购买成功
     */
    public static final int PRODUCT_STATISTICS_TYPE_2 = 2;
    /**
     * 同步状态
     * 0否
     */
    public static final int SYNC_STATE_0 = 0;
    /**
     * 同步状态
     * 1是
     */
    public static final int SYNC_STATE_1 = 1;
    /**
     * 产品形式
     * 卡密
     */
    public static final String PRODUCT_FORM_2 = "product_form_2";
    /**
     * 默认验证码
     */
    public static final String VER_CODE = "777888";

    /**
     * 退款说明
     * 钱包退款
     */
    public static String REFUND_DESC_WALLET = "钱包退款";
    /**
     * 退款说明
     * 预约超时退款
     */
    public static String REFUND_DESC_APPOINTMENT_TIMEOUT = "预约超时退款";

    /**
     * 消息事件
     * 小程序消息
     */
    public static String MSG_EVENT_MSG_CLASSIFY_1 = "msgclassify1";
    /**
     * 消息事件
     * 短信
     */
    public static String MSG_EVENT_MSG_CLASSIFY_2 = "msgclassify2";

    /**
     * 渠道用户绑定状态
     * 0 绑定
     */
    public static int CHANNEL_USER_BIND_STATE_0 = 0;
    /**
     * 渠道用户绑定状态
     * 1 解绑
     */
    public static int CHANNEL_USER_BIND_STATE_1 = 1;


    private PandaConstant() {

    }

    /**
     * 平台标记转换成平台名称
     *
     * @param platform 平台标记
     * @return 平台名称
     */
    public static String getPlatformDisplay(Integer platform) {
        if (null == platform) {
            return "";
        }
        switch (platform) {
            case PLATFORM_EXTEND_SHELL:
                return "壳牌";
            case PLATFORM_AUTO_HOME:
                return "汽车之家";
            case PLATFORM_E_GAS:
                return "易加油";
            default:
                return "";
        }

    }
}
